home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11409 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: in1.uu.net!interaccess!pbrianmcg
  2. From: brianmcg@interaccess.com (Brian V. McGroarty)
  3. Newsgroups: comp.lang.c,comp.programming
  4. Subject: Re: Assertive or Defensive?
  5. Date: 24 Mar 1996 00:55:29 GMT
  6. Organization: InterAccess, Chicago's best Internet Service Provider
  7. Message-ID: <4j26i1$n10@nntp.interaccess.com>
  8. References: <4ioggn$3sf@dazzle.east-tenn-st.edu> <4itcs2$po3@B1FF.mindspring.com> <31546257.11E1@olympic.net>
  9. NNTP-Posting-Host: d214.nhe.interaccess.com
  10. X-Newsreader: News Xpress Version 1.0 Beta #4
  11.  
  12. In article <31546257.11E1@olympic.net>,
  13.    "Erik W. Anderson" <eanders@olympic.net> wrote:
  14. >Eric Friedman wrote:
  15. >> IMHO, assertions should be used during development to help detect
  16. >> situations not expected in "real-life", but that can be encountered
  17. >> during the initial coding effort. Detecting null pointers would be an
  18. >> example. Defensive coding should certainly be used to detect bad input
  19. >> from users.
  20.  
  21. >> Use assertions to detect programming errors.
  22.  
  23. >To follow up on that point, an execellant book to check out is
  24. >"Writing Solid Code" by Steve MacGuire published by MS Press
  25. >under ISBN 1-55615-551-4.
  26.  
  27.  
  28. I'll underscore that -- anyone new to system-level programming (game and OS 
  29. guys) MUST read this text for ideas on taming wild pointers and resource 
  30. leaks.
  31.  
  32. For others, it will prove highly useful.  You'll probably find half a dozen 
  33. refinements of tricks you already hold dearly and another half dozen new 
  34. gems.  The book is even a fun read with a bit of personality.
  35.  
  36.  
  37. ---
  38. Brian Valters McGroarty -- brianmcg@bix.com
  39. phone/fax (847) 439-7714
  40.